//
//  IPPlanDetialController.swift
//  IPlan
//
//  Created by robot on 3/24/16.
//  Copyright © 2016 codeFighter.com. All rights reserved.
//

import UIKit


 class IPPlanDetialController: UIViewController {

    var planTitle = ""
    
    
    fileprivate var titleLabel:UILabel?
    open func setMyTitle(myTilte:String) {
    
        planTitle = myTilte

        
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        title = "计划详情"
        view.backgroundColor = UIColor.white
        // Do any additional setup after loading the view.
        setUpMainView()
        
    }
    
    func setUpMainView() {
    
        let horizonalGap : CGFloat = 50.0;
        titleLabel = UILabel.init(frame: CGRect.init(x: horizonalGap, y: 200, width: SCREEN_W - horizonalGap * 2, height: 50))
        titleLabel?.backgroundColor = UIColor.cyan
        titleLabel?.textColor = UIColor.red
        titleLabel?.text = planTitle
        titleLabel?.textAlignment = .center
        view.addSubview(titleLabel!)
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
